<?php 
/* SVN FILE: $Id$ */
/* Gallery Test cases generated on: 2009-10-31 15:30:38 : 1257013838*/
App::import('Model', 'Galleries.Gallery');

class GalleryTestCase extends CakeTestCase {
	var $Gallery = null;
	var $fixtures = array('plugin.galleries.gallery');

	function startTest() {
		$this->Gallery =& ClassRegistry::init('Gallery');
	}

	function testGalleryInstance() {
		$this->assertTrue(is_a($this->Gallery, 'Gallery'));
	}

	function testGalleryFind() {
		$this->Gallery->recursive = -1;
		$results = $this->Gallery->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Gallery' => array(
			'id'  => 1,
			'title'  => 'Lorem ipsum dolor sit amet',
			'descripcion'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-10-31'
		));
		$this->assertEqual($results, $expected);
	}
}
?>